import request from '@/utils/request'

// 查询用户标签列表
export function listUserPortrait(query) {
  return request({
    url: '/user/portrait/userPortraitList',
    method: 'get',
    params: query
  })
}

export function getUserPortraitById(id) {
  return request({
    url: '/user/portrait/'+id,
    method: 'get'
  })
}

export function getAllTagPortraitList() {
  return request({
    url: '/user/portrait/getAllTagPortraitList',
    method: 'get'
  })
}

export function addUserPortrait(data) {
  return request({
    url: '/user/portrait/addUserProtrait',
    method: 'post',
    data: data
  })
}

export function queryUserPortrait(data) {
  return request({
    url: '/user/portrait/queryUserProtrait',
    method: 'post',
    data: data
  })
}
// 删除用户画像
export function delUserPortrait(id) {
  return request({
    url: '/user/portrait/' + id,
    method: 'delete'
  })
}
